package org.theSeed.redisIntegration.pojo.constant;

import org.theSeed.base.pojo.constant.SysConstant;

public class CacheConstant {
    /**
     * 默认缓存管理器名称
     */
    public static final String MANAGER_KEY_PREFIX = "CACHE_MANAGER:";

    /**
     * 获取缓存
     * @param strs
     * @return
     */
    public static String getCacheName(String... strs){
        StringBuilder res = new StringBuilder(MANAGER_KEY_PREFIX);
        for (String str1 : strs) {
            res.append(str1).append(":");
        }
        return res.length() > 0 ? res.substring(0, res.length()-1): SysConstant.EMPTY_STR;
    }
}
